package com.smart.system.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AttendanceVo {
    @Schema(description = "旷工")
    private Integer absenteeism;

    @Schema(description = "请假")
    private Integer leave;

    @Schema(description = "休息")
    private Integer rest;

    @Schema(description = "迟到")
    private Integer late;

    @Schema(description = "正常")
    private Integer normal;

    @Schema(description = "异常")
    private Integer abnormal;

    public static AttendanceVo init() {
        AttendanceVo attendanceVo = new AttendanceVo();
        attendanceVo.absenteeism = 0;
        attendanceVo.leave = 0;
        attendanceVo.rest = 0;
        attendanceVo.late = 0;
        attendanceVo.normal = 0;
        attendanceVo.abnormal = 0;
        return attendanceVo;
    }
}
